fixes script Rotation. the methods used were not used jquery