added apiTest.js