JavaScript now concatenates and the html link gets replaced