Closed #2867: Fixed a bug of jsloader that it doesn't work on some browsers

Fixed a bug of jsloader that it doesn't work on some browsers