IE html5 compatibility fix - javascrip given in class