Added support for JS functions, and Scala fun -> JS fun.

Proof of concept with functions up to 2 parameters. Also only
for functions taking and returning types <: JSAny.