Added JsArray where necessary. Cleaned up ugly println.
Added comment for more JsArray work todo.