read string from index in webjs