Helper modules for javascript