refactor jQuery, HTML