Remove spacing for javascript object joining