code: function () {
                  // Check if the ?platform parameter is set in the URL
                  var paramsString = window.location.search.substr(1),
                      paramsArray = paramsString.split("&"),
                      params = {}, i,
                      platforms = {},
                      tmpArray, tmplen, platform, name, enabled;
  
                  for (i = 0; i < paramsArray.length; i++) {
                      tmpArray = paramsArray[i].split("=");
                      params[tmpArray[0]] = tmpArray[1];
                  }
  
                  if (params.platformTags) {
                      tmpArray = params.platformTags.split(",");
                      for (tmplen = tmpArray.length, i = 0; i < tmplen; i++) {
                          platform = tmpArray[i].split(":");
                          name = platform[0];
                          enabled=true;
                          if (platform.length > 1) {
                              enabled = platform[1];
                              if (enabled === 'false' || enabled === '0') {
                                  enabled = false;
                              }
                          }
                          platforms[name] = enabled;
                      }
                  }
                  return platforms;
              }
docs: Extracts user supplied platform tags from the "platformTags" query parameter
  of the form:
  
  ?platformTags=name:state,name:state,...
  
  (each tag defaults to true when state is unspecified)
  
  Example:
  
  ?platformTags=isTablet,isPhone:false,isDesktop:0,iOS:1,Safari:true, ...
  
  @returns {Object} the platform tags supplied by the query string