little cleanup of the filter code. lots more to do. re #46
Fix some JSHint warnings.
More JSHint fixes.
Fix header.