modified words var to make it slightly faster

Made it so words no longer uses typeof to check if the function is undefined. This should result in a minor speed increase on some older browsers.