Yes, Petunia! You CAN code a browser in Perl6. UPDATED: You can also use JavaScript, and get the results back!
Here is the latest code for the simple UI version: