Only prevent default click event on anchor links when on the homepage. Fixes #1.