Fix /dexsearch style

Fixed indentation
Removed unneeded semicolons after braces
Replaced .indexOf with in