rhino doesn't like using "function" as a key name.