Moved common scripts into script.js
Page specific functions