Fixed for new versions of Jade. The doctype was changed and the way connect-assets is initialized too.