Coding style: please change to

...indexOf( "..." );

(additional spaces)

Same for "if( ... )".