Sample javascript for Hacker School application