Moved static folder and fixed logic in index.html