Refactored html library into it's own file