stricter lint

.jshintrc had errors - it was ignoring 'unused' option
fix W030 lint issues discover by newer jshint

had commas instead of semicolons in couple of places
that is resported as 'Expected an assignment or function call and
instead saw an expression' by jshint >= 2.1
extract common peakresorts code
Merge branch 'jshint-upgrade'