es5-shim for ES5 compatability
Merge pull request #253 from rcchan/js.compatability

es5-shim for ES5 compatability