add a util javascript file
Merge branch 'master' into henryleu