diff --git a/libraries/examples/kotlin-js-library-example/pom.xml b/libraries/examples/kotlin-js-library-example/pom.xml
new file mode 100644
index 00000000000..cdfeda6421c
--- /dev/null
+++ b/libraries/examples/kotlin-js-library-example/pom.xml
@@ -0,0 +1,111 @@
+
+
+
+ 4.0.0
+
+
+
+ org.jetbrains.kotlin
+ kotlin-project
+ 0.1-SNAPSHOT
+ ../../pom.xml
+
+
+ kotlin-js-library-example
+
+
+
+ org.jetbrains.kotlin
+ kotlin-js-library
+ ${project.version}
+
+
+
+
+ src/main/kotlin
+ src/test/kotlin
+
+
+
+ src/main/kotlin
+
+
+
+
+
+ org.codehaus.mojo
+ properties-maven-plugin
+ 1.0-alpha-2
+
+
+ initialize
+
+ read-project-properties
+
+
+
+ ../../../resources/manifest.properties
+
+
+
+
+
+
+
+ org.jetbrains.kotlin
+ kotlin-maven-plugin
+ ${project.version}
+
+
+ js
+
+ js
+
+
+ ${project.build.outputDirectory}/${project.artifactId}.js
+
+
+
+
+
+
+ maven-resources-plugin
+
+
+
+ org.apache.maven.plugins
+ maven-jar-plugin
+
+ true
+ ${project.build.outputDirectory}
+
+ ${project.artifactId}.js
+ **/*.kt
+
+
+
+
+ ${manifest.impl.vendor}
+
+ ${manifest.impl.vendor}
+ ${build.number}
+ ${manifest.spec.title.kotlin.javascript.lib}
+ ${project.artifactId}
+
+
+
+
+
+
+ maven-deploy-plugin
+
+ true
+
+
+
+
+
+
+
diff --git a/libraries/examples/kotlin-js-library-example/src/main/kotlin/sample/Main.kt b/libraries/examples/kotlin-js-library-example/src/main/kotlin/sample/Main.kt
new file mode 100644
index 00000000000..28569346084
--- /dev/null
+++ b/libraries/examples/kotlin-js-library-example/src/main/kotlin/sample/Main.kt
@@ -0,0 +1,8 @@
+package library.sample
+
+public fun pairAdd(p: Pair): Int = p.first + p.second
+
+public fun pairMul(p: Pair): Int = p.first * p.second
+
+public data class IntHolder(val value: Int)
+
diff --git a/libraries/pom.xml b/libraries/pom.xml
index 0b7f51e84e4..b52ac80deea 100644
--- a/libraries/pom.xml
+++ b/libraries/pom.xml
@@ -101,6 +101,7 @@
examples/kotlin-java-example
examples/js-example
+ examples/kotlin-js-library-example
examples/browser-example