Operators as functions for javascript