js parser (not finished)
parse '{...}' blocks