Added package.json.
Improved code readability by using jslint.
Added basic test.
Added gitignore.