fix rendering issue on html5 template - jquery exploding