Added avatarPreview.js