Removed trailing whitespaces (updated .jshintrc)

Hi,

I removed all trailing whitespaces and added rule to ```.jshintrc```. In next PRs I'm planning to make all files passing rules from ```.jshintrc```.