initial javascript exporting work