Add tests.js for writing unit test for rest api. Move jquery to separate folder.