Fix print JavaScript

Instead of alerting "PRINT" we call the print() method is called.