Clean up javascript and add the Tufted gem