requirejs 

Changes
1. used requirejs to load all js files ( so adding any new js file will be easy )
2. added 'Complete' method for task and required sql change
3. moved html template out of index.html ( used textjs to load external templates )