contains changed to indexOf, fixed compatibility with chrome & opera.