fix the loader to be IE<9 compatible