Added support for top-level primitive JS modules.

A top-level object inheriting from JSObject (but not
JSGlobalScope) is considered to be accessible from the
global scope, under a field named after the object.

Typical example:

object jQuery extends JSObject {
  def apply(selector: JSString): JQuery = ???
  ...
}