Function similar to Python's repr or Ruby's Object#inspect.
A lightweight Python __repr__ parser for JavaScript.