Updated jade compile api so it works with both jade 1.0.0+ and older versions of jade.