Use custom repositories for clients and projects
Fix coding errors and add jslint validation