use the correct internal symbol for the global API
use double quotes throughout the code
break overlong line
use strict comparison
declare reused variable just once
remove the values() function as it requires ECMAScript 5 and is buggy (can be implemented later as an extension)