How To Export Functions In Javascript