change splice to slice to support loading file with hash ie8 on libdoc