my personal JS library, basic functions