Adding Q library for js promises