Update main.js

Remove PHP file usage