Adds JsFunction.equals method to compare functions