made constants global in canvas engine and fixed calenderbuilder bug