Add IE7 support for js