Update script.js

Matthew- Added $(document).ready(function(){} around all the code, because it seemed necessary