Added the display javascript