Make "export" a bit more logical.
Make stuff work on MSIE8 which doesn't have .indexOf()