changed to watch and concatenate javascript