Fixed insertBoilerPlate "not defined" bug