Some improvements to the js module:

  * automatic conversion of primitive python values
  * direct access to global 'this' context
  * basic bound-method behaviour on attribute lookup