The following code is having some problem with the jQuery.
Use the word jQuery instead of $ and pass it a $ reference
jQuery
$
jQuery(function($) { // you can use $ here $(window).load(function() { .. }); });