changed .replace to .href
tried to fix .href syntax