Bug fix older IE issue with general.js