PHP > JS album data normalization