Added collect-js module and added schema definitions to API.