[FIX] removed indexOf() because not supported by older IE´s.

Removed using indexOf because it is not supported by older IE´s.