Squash all the JS options to OP2_OPTION_ECMASCRIPT

This also guards against a couple of minor behavioral changes to
ensure they only happen when OP2_OPTION_ECMASCRIPT is set.