Is it possible to have CSS style, and even Javascript, drop-down menu navigation functioning in a custom Portal island?

I ask because this kind of functionality requires <script> and <style> elements defined in the <head> of the html.

On a related note, it would be nice to be able to Preview a custom island for development/debugging purposes in the editing form.