javascript object with some functions usable for writing html5 app