print javascript output