 
 		percents
 
-	permalink = "http://#{window.location.host}?" + $.param( getPermalinkQuery query )
+	permalink = "http://#{window.location.host}?" + getQueryString query
 
 	# Control
 	results.push $.extend

		$(this).hide().delay( 300 ).html( html ).fadeIn options.speed

pushState = ( query ) ->
	url = '?' + $.param( getPermalinkQuery query )
	history.pushState query, '', url if $.support.history

isEmbed = ->

isNewQuery = ( queryString ) ->
	return queryString != window.location.search

getQueryString = ( query ) ->
	$.param( getPermalinkQuery query )

getResults = ( query, options = {} ) ->
	lastQuery = window.location.search
	newQuery  = '?' + getQueryString query

	# Maintain state
	pushState query if ! isEmbed() && ( isNewQuery( newQuery ) || ! history.state )
