Moved main script into scripts/main.js