whitespacing
use encodeURIComponent() rather than the apparently deprecated escape().