HTML5 script (ie < 9)