Add jade dependency and fix undefined var error