actually linked js and html

also cleaned up some parts