Convert app from php to html