Moving JS code from index.html to core.js
Cleanup analytics code
Cleanup & settings button. + potential fix for slow animation!