Swtiched in operator to hasOwnProperty in links.js