bug 850967 fix some js strict fixes that showed up in debug build/tests, r=markh