fix es3ify and typo