there is no javascript in unity. unityscript is very different from javascript (static typing, no prototypes,...).
the supported languages are:
- unityscript (which is written in boo by the author of boo)
- c#
- boo (kind of looks like statically typed python)
Sorry, my fault, i always think Unity uses real javascript as it's also called like that in the scripting reference. But you are right of course, it's not the real deal
Fixed that in my above post.
Thanks for the hint