Improved ES<5 compatibility. Bump to 0.5.1