adding IE10 fix for permalink function