cleanded up the script.js file removing the need to refresh the browser on resize for the js to take effect