reading from html
applied fix1
applied fix2 adding buffer to string conversion
applied fix3 missing parenthesis
added layout to index.html