Moved js from html file.  Removed unused js function.