Finalized JavaScript and HTML