Utility library for js