use JSCRIPT_VERSION instead of LEGACY_IE and DOM2_EVENTS
add istanbul ignore statements, improve gulpfile
more ignore comments for istanbul