Simple function for parsing get params in browser to js object

var getDict = {};
location.search.substr(1).split("&").forEach(function(item) {getDict[item.split("=")[0]] = item.split("=")[1]});