Bugfix: Make sure the loading-bar has a class bar.
Otherwise the animation won't be shown
Bugfix: allow eventlisteners on document
Use events instead of calling remote code.
Better event-name
Use events for showing/hiding the loading bar.
Cleanup
Merge pull request #12 from sumocoders/use-events-instead-of-remote-code

Use events instead of remote code