Query parsing in JavaScript :: semicomplete.com - open source adventures
"The parse_query function will return a dictionary of query terms. Values are lists."