runFav function signature updates for server JavaScript.