moved time script to html file