move jquery declaration higher so it is available in angular