Changes the timing of removing top 10
Removes extra click function
Add functions
Adds Main class
Modifies all the function according to the class
Adds initialize function to main class

Also makes main.js anonymous function
Wrap the initialize code inside getConfig

This makes sure that initialize function is called only when config is loaded
Adds same setup as main to queue