Added JS error catch when adding links to a project