removed indexof for ie8
removing more indexof for ie8
work on platformer demo