read from index.html
fix missing fs require