Fixed the bug where drupal js dependencies were imported in the wrong order causing Drupal.formatPlural to fail and updated the sample code.
Closes #3478647