added js scripts to fix IE bugs