Test ajax functionality related to query passed in

Fixes #3

Haven't tested callback yet, not sure its required.

Other changes:
- Added sinon and Jasmine words to jshintrc