javascript is a joke. its just a bunch of hacks stapled together to make things work on the web.