move jquery before angular so it will use jquery instead of jqlite
refactor codes to work in version 1.2.0rc3