some js tips for out of date browser IE8.