update git ignore
add indexof component becasue ie8 doesn't support indexOf
require indexof and trim to support ie8