Fixed Chat.ui.filePaste.js

* Removed semicolons
* Changed match to result
* Changed return value