point to test.js as example for api