Initializing variables, updating coding standards

* WPCOM_sharing_counts throws an error with other plugins if the sharer isn't on a page, so an empty array is being initialized

* Updating the code to follow the JavaScript coding standards