Prepared index file to send json

Moved index file out of WEB-INF, got input boxes to generate JSON