Adding gloriaAPI.js

Stubbing out GLORIA API functionality in JavaScript