Add JS-hint to readme code samples

I added some hints to make Github recognize the syntax of the code samples in the readme. Makes it more readable.