diff --git a/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala b/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala
index f1f1a17..93b6a26 100644
--- a/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala
+++ b/src/main/scala/gitbucket/core/plugin/PluginRegistory.scala
@@ -54,8 +54,8 @@
 
   //def getJavaScripts(): List[(String, String)] = javaScripts.toList
 
-  def getJavaScript(currentPath: String): Option[String] = {
-    javaScripts.find(x => currentPath.matches(x._1)).map(_._2)
+  def getJavaScript(currentPath: String): List[String] = {
+    javaScripts.filter(x => currentPath.matches(x._1)).toList.map(_._2)
   }
 
   private case class GlobalAction(
@@ -158,4 +158,4 @@
   version: String,
   description: String,
   pluginClass: Plugin
-)
\ No newline at end of file
+)