Better printing for javascript values