Javascript helpers - AMD modules