Added a Util class and put some testing in index.html