Organized imgslider.js

Made the javascript file readable.