Migrate main folder to jQuery