Sort out bad line-breakages

I have fixed most of the warnings JSHint gave me.
I did sort out the bad line-breakage issues and I have introduced the "/*jslint browser: true */" instead of the listing of the globals used in a browser.