Method fixes and Search

Leaving script in index.js for now. I get JShint errors and need some help figuring that out. This script is needed for the popout. It will be used on a few themes so once it's in ther we can utilize it. Thanks!
Could use your help getting this the index.js controller. I get JShint errors about spacing etc.