Revert "change print method to be compatible with IE"

This reverts commit 9fc3d08a408218a4633469a1a2f38bbf7dc201d1.