Added some javascript from some minor UI improvements