Bug 984572 - JSHint fixes for js/*, js/utils and js/worker.

JSHint fixes for js/*, js/utils and js/worker.
http://bugzil.la/984572