Added script to main.js