Exporting js proto objects