all the script.js is now in an auto called function.