add almost full main.js"