Added the right results panel and an accordion to display the results
Cleaned up the JS and moved to index.js