changed AP bar animation to jQuery animate