Bug 947850 - Fix hit enter during search in music app

Probably merge these two same function into one, and make it as a global function in utils.js?