Added support for creating JS objects with new.

A consequence is that creating an array can now be done with e.g.
new JSArray[JSNumber](5)
and creating an empty object {} can be done with
new JSObject