create the webpage display javascript