Fixed settings callback
Fixed request query
Added test.js and Travis CI config