rewrite using bootstrap and jquery