Fixed issues with indexOf, which affected string parsing and browser detection

Signed-off-by: Lanny McNie <lanny@gskinner.com>
Updated docs and lib

Signed-off-by: Lanny McNie <lanny@gskinner.com>