Replace inline JS with link to script.js