Use 404.html standard to achieve HTML5Mode in Angular.js