refactored jQuery, css, html