jshint and jscs linting, first geometry test against baseline libtess expectations

with assorted fixes to pass our newly enforced linting rules.