made script.js anonymous function