added support for ScriptScore in FunctionScore