In progress coffeeify func
Adds when js promises/A dependency.
Added promises stub to help out.