Fixed issues with more recent verions of Jade. Closes #1