Update main.js

replace php with ruby