Fixed #43
Stop using .contains() which doesn't work in phantomjs