sync all files in the html directory in build script

fixes #586
whitespace cleanup in the build script