diff --git a/sites/all/modules/highcharts/highcharts.module b/sites/all/modules/highcharts/highcharts.module
index 237b081..19c02d0 100644
--- a/sites/all/modules/highcharts/highcharts.module
+++ b/sites/all/modules/highcharts/highcharts.module
@@ -25,44 +25,44 @@ function highcharts_library() {
     ),
   );
   $libraries['highcharts-library'] = array(
-    'title' => 'Highcharts library',
-    'js' => array($path . '/js/highcharts.js' => array()),
-  ) + $common;
+      'title' => 'Highcharts library',
+      'js' => array($path . '/js/highcharts.js' => array()),
+    ) + $common;
 
   // Theme.
   $libraries['highcharts-theme'] = array(
-    'title' => 'Highcharts theme',
-    'js' => array($path . '/js/themes/' . variable_get('highcharts_theme', 'default') . '.js' => array()),
-  ) + $common + $dependency;
+      'title' => 'Highcharts theme',
+      'js' => array($path . '/js/themes/' . variable_get('highcharts_theme', 'default') . '.js' => array()),
+    ) + $common + $dependency;
 
   // Exporting plugin.
   $libraries['highcharts-exporting'] = array(
-    'title' => 'Highcharts exporting plugin',
-    'js' => array($path . '/js/modules/exporting.js' => array()),
-  ) + $common + $dependency;
+      'title' => 'Highcharts exporting plugin',
+      'js' => array($path . '/js/modules/exporting.js' => array()),
+    ) + $common + $dependency;
 
   // Highcharts module Drupal behaviors.
   $libraries['highcharts-behaviors'] = array(
-    'title' => 'Highcharts behaviors',
-    'website' => 'http://drupal.org/project/highcharts',
-    'version' => '7.x-2.x',
-    'js' => array(
-      drupal_get_path('module', 'highcharts') . '/js/highcharts.js' => array(
-        'scope' => 'footer',
+      'title' => 'Highcharts behaviors',
+      'website' => 'http://drupal.org/project/highcharts',
+      'version' => '7.x-2.x',
+      'js' => array(
+        drupal_get_path('module', 'highcharts') . '/js/highcharts.js' => array(
+          'scope' => 'footer',
+        ),
       ),
-    ),
-  ) + $dependency;
+    ) + $dependency;
 
   return $libraries;
 }
 
 /**
- * Renders a highchart.
+ * Build a highchart render_array.
  *
  * @param object $options
  *   A highcharts options object. Note methods are specially returned by
  *   highcharts_get_methods() via hook_highcharts_methods_alter(). See the
- *   @link http://api.highcharts.com Highcharts reference. @endlink
+ * @link http://api.highcharts.com Highcharts reference. @endlink
  * @param array $attributes
  *   An HTML $attributes array passed to theme_highcharts_chart(), to which will
  *   be added:
@@ -70,10 +70,10 @@ function highcharts_library() {
  *   - style: Default: 'margin 0 auto;' is appended to any existing style.
  *   - class: Default: 'highcharts-chart' is appended to any existing class.
  *
- * @return string
- *   The chart container div, ready for highcharts behavior rendering.
+ * @return array
+ *   The render array for the highchart which can be passed to drupal_render to render.
  */
-function highcharts_render($options, $attributes = array()) {
+function highcharts_render_array($options, $attributes = array()) {
   // Generate and add a unique chart ID to the options object. We should not
   // need to use drupal_html_id() here.
   $chart_id = 'highcharts_' . uniqid();
@@ -136,7 +136,28 @@ function highcharts_render($options, $attributes = array()) {
     );
   }
 
-  return drupal_render($container);
+  return $container;
+}
+
+/**
+ * Renders a highchart.
+ *
+ * @param object $options
+ *   A highcharts options object. Note methods are specially returned by
+ *   highcharts_get_methods() via hook_highcharts_methods_alter(). See the
+ * @link http://api.highcharts.com Highcharts reference. @endlink
+ * @param array $attributes
+ *   An HTML $attributes array passed to theme_highcharts_chart(), to which will
+ *   be added:
+ *   - id: A unique ID for matching JS settings to the themed chart container.
+ *   - style: Default: 'margin 0 auto;' is appended to any existing style.
+ *   - class: Default: 'highcharts-chart' is appended to any existing class.
+ *
+ * @return string
+ *   The chart container div, ready for highcharts behavior rendering.
+ */
+function highcharts_render($options, $attributes = array()) {
+  return drupal_render(highcharts_render_array($options, $attributes));
 }
 
 /**
@@ -199,7 +220,7 @@ function highcharts_get_method_from_string($js_object, &$element) {
   while ($key = array_shift($keys)) {
     if (isset($element->$key)) {
       // The element exists.
-      $element = &$element->$key;
+      $element = & $element->$key;
     }
     else {
       // The element does not exist.
