Added type="text/javascript" for IE compatibility