removed callback from javascript because it has to be added to the runtime