reformatted files as proper jquery plugin, added loading screen