Fix for https://github.com/ogt/boxchareditor/issues/2

Thanks for great work with me! I was pleased with the cooperation.