refactor html/js/css 3