fixed syntax errors, variables redeclarations, ambiguosity and missing function return values, should always run jslint and not blindly trust :-)
fixed syntax errors, variables redeclarations, ambiguosity and missing function return values, should always run jslint and not blindly trust :-)

dperini/nwmatcher,dperini/nwmatcher,dperini/nwmatcher