createFunction called x TypeError: Function expected