Fixed error with link field in main.js