Changed style of JS according with lintjs from npm.
Fixed typo error in gitignore.