change readkey to writekey on index.html