implement _last_index_of to help poor old IE