Use handler names (not functions) properly in Javascript backend