Added $(function(){ in script