removed javascript that creates a function to return the struct CommonJS style