adding js methods
Merge branch 'master' of https://github.com/alexgaynor/task_allocator