Added safeApply when jQuery bind