Adding the javascript to hide download links for anonymous users.