Define print in JS