Removed href from location link. Added preventDefault.