Adding javascript API for backend and associated test files.