Added JavaScript calls to API to submit and list entities.