Javascript Contains Prototype

I always hated using the indexof method to detect strings in javascript. I found a nice prototype method which makes these kinds of checks easier.

Returns true or false.