Making it work with JQLite (embedded in angular)