Update index.html

add auto dir for textarea and #priview