Making the js and css resources on index.html absolute instead of relative.