Updated html file; added variables, Procedure function and main flow to js file.