Removed a bunch
housecleaning the js and html for frontend use