update javacsript callbacks