Moved js code from html to start.js