HJSON implementation for JavaScript