moved function from sidebar.js into main file
Merge branch 'master' of github.com:priteshgupta/spotdrop