minor refactor to html, fixed jquery