Added 404; Fixed HTML5 history detection