Fix reloading loop, better visual feedback

Moved things a round a bit so the page won't reload 1000 times if gemifying 1000 items.
Merge pull request #1 from srabouin/master

Fix for refreshing page 1000 times, what was I thinking leaving that in? Thanks srabouin.