Index: src/bp-core/js/avatar.js
===================================================================
--- src/bp-core/js/avatar.js	(revision 12535)
+++ src/bp-core/js/avatar.js	(working copy)
@@ -4,7 +4,7 @@
 
 ( function( exports, $ ) {
 
-	// Bail if not set
+	// Bail if not set.
 	if ( typeof BP_Uploader === 'undefined' ) {
 		return;
 	}
@@ -25,21 +25,21 @@
 			 */
 			this.removeLegacyUI();
 
-			// Init some vars
+			// Init some vars.
 			this.views    = new Backbone.Collection();
 			this.jcropapi = {};
 			this.warning = null;
 
-			// Set up nav
+			// Set up nav.
 			this.setupNav();
 
-			// Avatars are uploaded files
+			// Avatars are uploaded files.
 			this.avatars = bp.Uploader.filesUploaded;
 
 			// The Avatar Attachment object.
 			this.Attachment = new Backbone.Model();
 
-			// Wait till the queue is reset
+			// Wait till the queue is reset.
 			bp.Uploader.filesQueue.on( 'reset', this.cropView, this );
 
 			/**
@@ -56,12 +56,12 @@
 		},
 
 		removeLegacyUI: function() {
-			// User
+			// User.
 			if ( $( '#avatar-upload-form' ).length ) {
 				$( '#avatar-upload' ).remove();
 				$( '#avatar-upload-form p' ).remove();
 
-			// Group Manage
+			// Group Manage.
 			} else if ( $( '#group-settings-form' ).length ) {
 				$( '#group-settings-form p' ).each( function( i ) {
 					if ( 0 !== i ) {
@@ -73,12 +73,12 @@
 					$( '#delete-group-avatar-button' ).remove();
 				}
 
-			// Group Create
+			// Group Create.
 			} else if ( $( '#group-create-body' ).length ) {
 				$( '.main-column p #file' ).remove();
 				$( '.main-column p #upload' ).remove();
 
-			// Admin Extended Profile
+			// Admin Extended Profile.
 			} else if ( $( '#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin' ).length ) {
 				$( '#bp_xprofile_user_admin_avatar a.bp-xprofile-avatar-user-admin' ).remove();
 			}
@@ -85,7 +85,7 @@
 		},
 
 		setView: function( view ) {
-			// Clear views
+			// Clear views.
 			if ( ! _.isUndefined( this.views.models ) ) {
 				_.each( this.views.models, function( model ) {
 					model.get( 'view' ).remove();
@@ -92,21 +92,21 @@
 				}, this );
 			}
 
-			// Reset Views
+			// Reset Views.
 			this.views.reset();
 
-			// Reset Avatars (file uploaded)
+			// Reset Avatars (file uploaded).
 			if ( ! _.isUndefined( this.avatars ) ) {
 				this.avatars.reset();
 			}
 
-			// Reset the Jcrop API
+			// Reset the Jcrop API.
 			if ( ! _.isEmpty( this.jcropapi ) ) {
 				this.jcropapi.destroy();
 				this.jcropapi = {};
 			}
 
-			// Load the required view
+			// Load the required view.
 			switch ( view ) {
 				case 'upload':
 					this.uploaderView();
@@ -119,10 +119,10 @@
 		},
 
 		resetViews: function() {
-			// Reset to the uploader view
+			// Reset to the uploader view.
 			this.nav.trigger( 'bp-avatar-view:changed', 'upload' );
 
-			// Reset to the uploader nav
+			// Reset to the uploader nav.
 			_.each( this.navItems.models, function( model ) {
 				if ( model.id === 'upload' ) {
 					model.set( { active: 1 } );
@@ -143,7 +143,7 @@
 					return;
 				}
 
-				// Reset active View
+				// Reset active View.
 				activeView = 0;
 
 				if ( 0 === index ) {
@@ -163,29 +163,29 @@
 			this.nav = new bp.Views.Nav( { collection: this.navItems } );
 			this.nav.inject( '.bp-avatar-nav' );
 
-			// Activate the initial view (uploader)
+			// Activate the initial view (uploader).
 			this.setView( initView );
 
-			// Listen to nav changes (it's like a do_action!)
+			// Listen to nav changes (it's like a do_action!).
 			this.nav.on( 'bp-avatar-view:changed', _.bind( this.setView, this ) );
 		},
 
 		uploaderView: function() {
-			// Listen to the Queued uploads
+			// Listen to the Queued uploads.
 			bp.Uploader.filesQueue.on( 'add', this.uploadProgress, this );
 
-			// Create the BuddyPress Uploader
+			// Create the BuddyPress Uploader.
 			var uploader = new bp.Views.Uploader();
 
-			// Add it to views
+			// Add it to views.
 			this.views.add( { id: 'upload', view: uploader } );
 
-			// Display it
+			// Display it.
 			uploader.inject( '.bp-avatar' );
 		},
 
 		uploadProgress: function() {
-			// Create the Uploader status view
+			// Create the Uploader status view.
 			var avatarStatus = new bp.Views.uploaderStatus( { collection: bp.Uploader.filesQueue } );
 
 			if ( ! _.isUndefined( this.views.get( 'status' ) ) ) {
@@ -194,7 +194,7 @@
 				this.views.add( { id: 'status', view: avatarStatus } );
 			}
 
-			// Display it
+			// Display it.
 			avatarStatus.inject( '.bp-avatar-status' );
 		},
 
@@ -201,12 +201,12 @@
 		cropView: function() {
 			var status;
 
-			// Bail there was an error during the Upload
+			// Bail there was an error during the Upload.
 			if ( _.isEmpty( this.avatars.models ) ) {
 				return;
 			}
 
-			// Make sure to remove the uploads status
+			// Make sure to remove the uploads status.
 			if ( ! _.isUndefined( this.views.get( 'status' ) ) ) {
 				status = this.views.get( 'status' );
 				status.get( 'view' ).remove();
@@ -213,7 +213,7 @@
 				this.views.remove( { id: 'status', view: status } );
 			}
 
-			// Create the Avatars view
+			// Create the Avatars view.
 			var avatar = new bp.Views.Avatars( { collection: this.avatars } );
 			this.views.add( { id: 'crop', view: avatar } );
 
@@ -224,9 +224,9 @@
 			var self = this,
 				crop;
 
-			// Remove the crop view
+			// Remove the crop view.
 			if ( ! _.isUndefined( this.views.get( 'crop' ) ) ) {
-				// Remove the JCrop API
+				// Remove the JCrop API.
 				if ( ! _.isEmpty( this.jcropapi ) ) {
 					this.jcropapi.destroy();
 					this.jcropapi = {};
@@ -261,12 +261,12 @@
 
 				avatarStatus.inject( '.bp-avatar-status' );
 
-				// Update each avatars of the page
+				// Update each avatars of the page.
 				$( '.' + avatar.get( 'object' ) + '-' + response.item_id + '-avatar' ).each( function() {
 					$(this).prop( 'src', response.avatar );
 				} );
 
-				// Inject the Delete nav
+				// Inject the Delete nav.
 				bp.Avatar.navItems.get( 'delete' ).set( { hide: 0 } );
 
 				/**
@@ -304,7 +304,7 @@
 		},
 
 		deleteView:function() {
-			// Create the delete model
+			// Create the delete model.
 			var delete_model = new Backbone.Model( _.pick( BP_Uploader.settings.defaults.multipart_params.bp_params,
 				'object',
 				'item_id',
@@ -311,13 +311,13 @@
 				'nonces'
 			) );
 
-			// Create the delete view
+			// Create the delete view.
 			var deleteView = new bp.Views.DeleteAvatar( { model: delete_model } );
 
-			// Add it to views
+			// Add it to views.
 			this.views.add( { id: 'delete', view: deleteView } );
 
-			// Display it
+			// Display it.
 			deleteView.inject( '.bp-avatar' );
 		},
 
@@ -325,7 +325,7 @@
 			var self = this,
 				deleteView;
 
-			// Remove the delete view
+			// Remove the delete view.
 			if ( ! _.isUndefined( this.views.get( 'delete' ) ) ) {
 				deleteView = this.views.get( 'delete' );
 				deleteView.get( 'view' ).remove();
@@ -351,16 +351,16 @@
 
 				avatarStatus.inject( '.bp-avatar-status' );
 
-				// Update each avatars of the page
+				// Update each avatars of the page.
 				$( '.' + model.get( 'object' ) + '-' + response.item_id + '-avatar').each( function() {
 					$( this ).prop( 'src', response.avatar );
 				} );
 
-				// Remove the Delete nav
+				// Remove the Delete nav.
 				bp.Avatar.navItems.get( 'delete' ).set( { active: 0, hide: 1 } );
 
 				/**
-				 * Reset the Attachment object
+				 * Reset the Attachment object.
 				 *
 				 * You can run extra actions once the avatar is set using:
 				 * bp.Avatar.Attachment.on( 'change:url', function( data ) { your code } );
@@ -410,7 +410,7 @@
 		}
 	};
 
-	// Main Nav view
+	// Main Nav view.
 	bp.Views.Nav = bp.View.extend( {
 		tagName:    'ul',
 		className:  'avatar-nav-items',
@@ -422,7 +422,7 @@
 		initialize: function() {
 			var hasAvatar = _.findWhere( this.collection.models, { id: 'delete' } );
 
-			// Display a message to inform about the delete tab
+			// Display a message to inform about the delete tab.
 			if ( 1 !== hasAvatar.get( 'hide' ) ) {
 				bp.Avatar.displayWarning( BP_Uploader.strings.has_avatar_warning );
 			}
@@ -434,7 +434,7 @@
 		addNavItem: function( item ) {
 			/**
 			 * The delete nav is not added if no avatar
-			 * is set for the object
+			 * is set for the object.
 			 */
 			if ( 1 === item.get( 'hide' ) ) {
 				return;
@@ -455,13 +455,13 @@
 					view.remove();
 				}
 
-				// Check to see if the nav is not already rendered
+				// Check to see if the nav is not already rendered.
 				if ( item.get( 'id' ) === view.model.get( 'id' ) ) {
 					isRendered = true;
 				}
 			} );
 
-			// Add the Delete nav if not rendered
+			// Add the Delete nav if not rendered.
 			if ( ! _.isBoolean( isRendered ) ) {
 				this.addNavItem( item );
 			}
@@ -470,7 +470,7 @@
 		toggleView: function( event ) {
 			event.preventDefault();
 
-			// First make sure to remove all warnings
+			// First make sure to remove all warnings.
 			bp.Avatar.removeWarning();
 
 			var active = $( event.target ).data( 'nav' );
@@ -486,7 +486,7 @@
 		}
 	} );
 
-	// Nav item view
+	// Nav item view.
 	bp.Views.NavItem = bp.View.extend( {
 		tagName:    'li',
 		className:  'avatar-nav-item',
@@ -510,7 +510,7 @@
 		}
 	} );
 
-	// Avatars view
+	// Avatars view.
 	bp.Views.Avatars = bp.View.extend( {
 		className: 'items',
 
@@ -519,16 +519,16 @@
 		},
 
 		addItemView: function( item ) {
-			// Defaults to 150
+			// Defaults to 150.
 			var full_d = { full_h: 150, full_w: 150 };
 
-			// Make sure to take in account bp_core_avatar_full_height or bp_core_avatar_full_width php filters
+			// Make sure to take in account bp_core_avatar_full_height or bp_core_avatar_full_width php filters.
 			if ( ! _.isUndefined( BP_Uploader.settings.crop.full_h ) && ! _.isUndefined( BP_Uploader.settings.crop.full_w ) ) {
 				full_d.full_h = BP_Uploader.settings.crop.full_h;
 				full_d.full_w = BP_Uploader.settings.crop.full_w;
 			}
 
-			// Set the avatar model
+			// Set the avatar model.
 			item.set( _.extend( _.pick( BP_Uploader.settings.defaults.multipart_params.bp_params,
 				'object',
 				'item_id',
@@ -535,12 +535,12 @@
 				'nonces'
 			), full_d ) );
 
-			// Add the view
+			// Add the view.
 			this.views.add( new bp.Views.Avatar( { model: item } ) );
 		}
 	} );
 
-	// Avatar view
+	// Avatar view.
 	bp.Views.Avatar = bp.View.extend( {
 		className: 'item',
 		template: bp.template( 'bp-avatar-item' ),
@@ -556,7 +556,7 @@
 				aspectRatio : 1
 			} );
 
-			// Display a warning if the image is smaller than minimum advised
+			// Display a warning if the image is smaller than minimum advised.
 			if ( false !== this.model.get( 'feedback' ) ) {
 				bp.Avatar.displayWarning( this.model.get( 'feedback' ) );
 			}
@@ -600,7 +600,7 @@
 				crop_bottom = nh + crop_top;
 			}
 
-			// Add the cropping interface
+			// Add the cropping interface.
 			tocrop.Jcrop( {
 				onChange: _.bind( self.showPreview, self ),
 				onSelect: _.bind( self.showPreview, self ),
@@ -607,7 +607,7 @@
 				aspectRatio: self.options.aspectRatio,
 				setSelect: [ crop_left, crop_top, crop_right, crop_bottom ]
 			}, function() {
-				// Get the Jcrop API
+				// Get the Jcrop API.
 				bp.Avatar.jcropapi = this;
 			} );
 		},
@@ -629,7 +629,7 @@
 				var rx = fw / coords.w;
 				var ry = fh / coords.h;
 
-				// Update the model
+				// Update the model.
 				this.model.set( { x: coords.x, y: coords.y, w: coords.w, h: coords.h } );
 
 				$( '#avatar-crop-preview' ).css( {
@@ -643,7 +643,7 @@
 		}
 	} );
 
-	// BuddyPress Avatar Feedback view
+	// BuddyPress Avatar Feedback view.
 	bp.Views.AvatarStatus = bp.View.extend( {
 		tagName: 'p',
 		className: 'updated',
Index: src/bp-core/js/bp-api-request.js
===================================================================
--- src/bp-core/js/bp-api-request.js	(revision 12535)
+++ src/bp-core/js/bp-api-request.js	(working copy)
@@ -8,7 +8,7 @@
 window.bp = window.bp || {};
 
 ( function( wp, bp, $ ) {
-    // Bail if not set
+    // Bail if not set.
     if ( typeof bpApiSettings === 'undefined' ) {
         return;
     }
@@ -15,7 +15,7 @@
 
     bp.isRestEnabled = true;
 
-    // Polyfill wp.apiRequest if WordPress < 4.9
+    // Polyfill wp.apiRequest if WordPress < 4.9.
     bp.apiRequest = function( options ) {
         var bpRequest;
 
Index: src/bp-core/js/bp-plupload.js
===================================================================
--- src/bp-core/js/bp-plupload.js	(revision 12535)
+++ src/bp-core/js/bp-plupload.js	(working copy)
@@ -5,7 +5,7 @@
 
 ( function( exports, $ ) {
 
-	// Bail if not set
+	// Bail if not set.
 	if ( typeof BP_Uploader === 'undefined' ) {
 		return;
 	}
@@ -17,7 +17,7 @@
 	 */
 	_.extend( bp, _.pick( wp, 'Backbone', 'ajax', 'template' ) );
 
-	// Init Models, Collections, Views and the BuddyPress Uploader
+	// Init Models, Collections, Views and the BuddyPress Uploader.
 	bp.Models      = bp.Models || {};
 	bp.Collections = bp.Collections || {};
 	bp.Views       = bp.Views || {};
@@ -26,7 +26,7 @@
 	/**
 	 * BuddyPress Uploader.
 	 *
-	 * This is an adapted version of wp.Uploader
+	 * This is an adapted version of wp.Uploader.
 	 */
 	bp.Uploader.uploader = function() {
 		var self = this,
@@ -47,7 +47,7 @@
 			return;
 		}
 
-		// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode)
+		// Make sure flash sends cookies (seems in IE it does without switching to urlstream mode).
 		if ( ! isIE && 'flash' === plupload.predictRuntime( this.params.defaults ) &&
 			( ! this.params.defaults.required_features || ! this.params.defaults.required_features.hasOwnProperty( 'send_binary_string' ) ) ) {
 
@@ -97,12 +97,12 @@
 
 		} );
 
-		// See https://core.trac.wordpress.org/ticket/37039
+		// See https://core.trac.wordpress.org/ticket/37039.
 		this.uploader.bind( 'postinit', function( up ) {
 			up.refresh();
 		});
 
-		// Init BuddyPress Uploader
+		// Init BuddyPress Uploader.
 		this.uploader.init();
 
 		/**
@@ -109,7 +109,7 @@
 		 * Feedback callback.
 		 *
 		 * Add a new message to the errors collection, so it's possible
-		 * to give some feedback to the user
+		 * to give some feedback to the user.
 		 *
 		 * @param  {string}        message
 		 * @param  {object}        data
@@ -140,7 +140,7 @@
 
 			/**
 			 * In case the multiple selection is false (eg: avatar) stop the process and send
-			 * and event containing a warning
+			 * and event containing a warning.
 			 */
 			if ( ! uploader.settings.multi_selection && files.length > 1 ) {
 				for ( var i in files ) {
@@ -181,7 +181,7 @@
 		} );
 
 		/**
-		 * Update each file item on progress
+		 * Update each file item on progress.
 		 *
 		 * @event UploadProgress
 		 * @param {plupload.Uploader} uploader Uploader instance.
@@ -225,15 +225,15 @@
 
 			file.item.set( _.extend( response.data, { uploading: false } ) );
 
-			//  Add the file to the Uploaded ones
+			//  Add the file to the Uploaded ones.
 			bp.Uploader.filesUploaded.add( file.item );
 
 		} );
 
 		/**
-		 * Trigger an event to inform a new upload is being processed
+		 * Trigger an event to inform a new upload is being processed.
 		 *
-		 * Mainly used to remove an eventual warning
+		 * Mainly used to remove an eventual warning.
 		 *
 		 * @event BeforeUpload
 		 * @param {plupload.Uploader} uploader Uploader instance.
@@ -244,7 +244,7 @@
 		} );
 
 		/**
-		 * Reset the filesQueue once the upload is complete
+		 * Reset the filesQueue once the upload is complete.
 		 *
 		 * @event BeforeUpload
 		 * @param {plupload.Uploader} uploader Uploader instance.
@@ -256,7 +256,7 @@
 		} );
 
 		/**
-		 * Map Plupload errors & Create a warning when plupload failed
+		 * Map Plupload errors & Create a warning when plupload failed.
 		 *
 		 * @event Error
 		 * @param {plupload.Uploader} uploader Uploader instance.
@@ -291,12 +291,12 @@
 		} );
 	};
 
-	// Create a very generic Model for files
+	// Create a very generic Model for files.
 	bp.Models.File = Backbone.Model.extend( {
 		file: {}
 	} );
 
-	// Add Collections to store queue, uploaded files and errors
+	// Add Collections to store queue, uploaded files and errors.
 	$.extend( bp.Uploader, {
 		filesQueue    : new Backbone.Collection(),
 		filesUploaded : new Backbone.Collection(),
@@ -303,7 +303,7 @@
 		filesError    : new Backbone.Collection()
 	} );
 
-	// Extend wp.Backbone.View with .prepare() and .inject()
+	// Extend wp.Backbone.View with .prepare() and .inject().
 	bp.View = bp.Backbone.View.extend( {
 		inject: function( selector ) {
 			this.render();
@@ -320,7 +320,7 @@
 		}
 	} );
 
-	// BuddyPress Uploader main view
+	// BuddyPress Uploader main view.
 	bp.Views.Uploader = bp.View.extend( {
 		className: 'bp-uploader-window',
 		template: bp.template( 'upload-window' ),
@@ -358,17 +358,17 @@
 				return;
 			}
 
-			// Remove all warning views
+			// Remove all warning views.
 			_.each( this.warnings, function( view ) {
 				view.remove();
 			} );
 
-			// Reset Warnings
+			// Reset Warnings.
 			this.warnings = [];
 		}
 	} );
 
-	// BuddyPress Uploader warning view
+	// BuddyPress Uploader warning view.
 	bp.Views.uploaderWarning = bp.View.extend( {
 		tagName: 'p',
 		className: 'warning',
@@ -383,7 +383,7 @@
 		}
 	} );
 
-	// BuddyPress Uploader Files view
+	// BuddyPress Uploader Files view.
 	bp.Views.uploaderStatus = bp.View.extend( {
 		className: 'files',
 
@@ -410,7 +410,7 @@
 		}
 	} );
 
-	// BuddyPress Uploader File progress view
+	// BuddyPress Uploader File progress view.
 	bp.Views.uploaderProgress = bp.View.extend( {
 		className: 'bp-uploader-progress',
 		template: bp.template( 'progress-window' )
