Switch from php to HTML and jQuery