Backout dc82a01d0cfe (bug 961318) for various JavaScript test failures on this CLOSED TREE