Changes to the jade compiling, adding locals support