Added logic to serve index file and js files