Add Property To Array Javascript Function Syntax