fixed CORS
fixed json part of post
extra bracket
fixed json creation
working on index
finished index page