Improved .gitignore file
Add JS file extension, improved tests