adding the javascrit file to change the display mode