Here, I renamed the print function, that should fix the bug.

https://jsbin.com/seraputuve/edit?output