fix server to properly serve index.html within ionic