Fix to work with modern file.slice

Chrome and other newer browsers now just implement the slice standard,
rather than webkitSlice or mozSlice.