update .gitignore
package.json: add pkg.main; change name and description
optimize code for jshint