IE7 issue - removing console log from javascript as causes IE to crash as doesn't have console. check if has console first