angular js and merging data