removed extra displayResults function, re-arranged code so resultslayer defined before use
removed extra displayResults function, re-arranged code so resultslayer defined before use

danZzyy/WebGISNTL,danZzyy/WebGISNTL