javascript callback settings fix