Removed legacy js in main.