trimmed the fat, separated the js from the html