add some basic utilities functions

js always util functions