Fix syntax error in basic test and add index.js
Install q promise libary
Added test script to package.json