Graph fixes for jquery 1.8 on chrome bug