added escape parameter to link_to_function with default value of false in order to avoid Javascript functions from being incorrectly escaped.  The link_to_function method has been removed from Rails 4.1 and we should come back to revisit it when upgrading to 4.1