Javacript module to print objects