Refactored search coffee script
fixed search's Enter key bug