Simple library of JavaScript and PHP functions