<script type="text/javascript">
//<![CDATA[
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.initialize) 
  {
    Styx.Initializers.<%=klass%>.initialize(<%=data.to_json.html_safe%>) 
  }
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.<%=method%>) 
  { 
    Styx.Initializers.<%=klass%>.<%=method%>(<%=data.to_json.html_safe%>) 
  }
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>.initialize) 
  {
    Styx.Initializers.<%=klass%>.initialize(<%=data.to_json.html_safe%>) 
  }
  if (Styx.Initializers.<%=klass%> && Styx.Initializers.<%=klass%>['<%=method%>']) 
  { 
    Styx.Initializers.<%=klass%>['<%=method%>'](<%=data.to_json.html_safe%>) 
  }
//]]>
</script>

Access initializer's action methods by string name.
Access initializer's action methods by string name.

Fixes syntax errors for the cases when controller action's name
coincides with one of the JavaScript keywords, e.g. 'new'.