re#35 fixed a bug when importing js into index.html