fixing bugs and changing msg
Reading from index.html