My own JS library with some required functions