converted ui to JS format

replaced HTML code with JS for UI and replaced index.php with index.html