Added javascript function to access an axis's scale