Upgrading to javascript v1.0