Fix invalid result of findXxxxToken methods when value is provided

When value and type both provided to the "JsFile.findNextToken" method, it will
return the first token matching the type without checking the value because of
the "prevToken.type !== type" condition.

The same applies to both "JsFile.findNextToken" and "JsFile.findPrevToken"

Close gh-645