changed toJSON for attributes to get correct params from CartoDBLayer model
changed layer-selector template