fixes #5 fixes #4, require/config in index.html