there is no javascript in unity. laugh 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)

i wouldn't use unityscript either since c# and boo are more useful languages that can be used for other things as well.