fix karma.conf.js js dependency
fix loading
co
refactoring avatarUpload directive