Almost done with the JavaScript file to make it work and look fancy.