Update main.js

Fixed Search