fixed ie8 issue on the example onload