Expose javascript prototypes

Change-Id: I019c32b9ad11193a8a069ea091de299b3e7bb4b6