Added Javascript wrapper for the API, and demo HTML