ace.proxy : give a few helpers a return type annotation

These helpers always return JsObjects, so apply a type annotation.