Added jsHint config and fixed some jsHint issues.
Fixed bug with second render.