js print function marries button