Removed dependancy to tidy html