added html5 compatibiltiy and Javascript