javascript callback settings