Remove unused code from main.coffee
Fix frontend popup bug: now showing search key again