more instructions in README.md
changed code order
added .jshintrc and fixed errors