HTML port.

Changes for HTML port and clean up of resources and dependencies that
didn't need to be there.