Add Property To Object Only If Value Is Defined Javascript