How to remove a string from JavaScript array