Using a function outside of components - SolidJS