use index.html for body
fix buffer vs string issues
fix syntax error