fixed docs on es5 implementation