moved main.js into /scripts folder