collection of simple reusable js functions