a better javascript in javascript