ie8 fixes for background-position and indexof