Reverted main.js to original