Fix for #489

Can now have jQuery referenced before or after angular reference.