Javascript handlers now accept functions in addition to string function names