new javascript changes and stuff