javascript export is back, this time with value types