Build JS to the proper directory
Make some good use of deferreds
You can use $ -> as shorthand for ready() in CS