Added check for error related to old browsers that don't support jQuery 2.0