one javascript util class providing common functions