COMETD-499 (JQuery bindings use the "jQuery" object too early).

Removed early references to the jQuery object.
Added automatic license header check also to JavaScript files.