Change indexof-component to indexof, so that it can be required

classes was not working with browserify without this fix.