def js_source(source_path, namespace = nil, output_as_array = false)
      template_name = File.basename(source_path, ".ejs")
      template_name = "#{namespace}.#{template_name}" if namespace
      
      js_source_from_string(template_name, File.read(source_path), output_as_array)
    end
def js_source(source_path, namespace = nil, output_as_array = false)
      template_name = File.basename(source_path, ".ejs")
      template_name = "#{namespace}.#{template_name}" if namespace
      
      js_source_from_string(template_name, File.read(source_path), output_as_array)
    end
compile a ejs file into javascript