Removed .attr dependecies. Moved functions out of return loop. Fixed moving class removal and customization.