code highlight, syntax fixes

The README file looks better now. :smile: Changes:

 - added JavaScript and shell code highlight
 - fixed some missing semicolon
 - replaced multiple var declarations with one