More sophisticated html build, cuts down heavily on unused files