//initialize settings
HN.settings.initSettings();

if(HN.pageType === 'comments'){
	//add listener for if user clicks on comments link while on comments page
	window.addEventListener('hashchange', HN.displayComments, false);
	HN.displayComments();
}
else if(HN.pageType === 'settings'){
	HN.settings.initSettingsPage();
}
else{
	HN.displayStories();
}
//initialize settings
HN.settings.initSettings();

if(HN.pageType === 'comments'){
	//add listener for if user clicks on comments link while on comments page
	window.addEventListener('hashchange', function(){HN.clearComments(); HN.displayComments();}, false);
	HN.displayComments();
}
else if(HN.pageType === 'settings'){
	HN.settings.initSettingsPage();
}
else{
	HN.displayStories();
}
Fix bug where after hash change event on comments page, new comments would be added to existing comments on page, instead of replacing them
Fix bug where after hash change event on comments page, new comments would be added to existing comments on page, instead of replacing them
