work on unload javascript, used getscript, + comments not yet in coffeescript