Add test html page
Wrap global functions into function expression