Added function and test html