Searching with neural network from brain.js