Changed the whole project to Angular.js Works great...