added tests to main build
diff --git a/proton-c/CMakeLists.txt b/proton-c/CMakeLists.txt
index 7872801..27bebcc 100644
--- a/proton-c/CMakeLists.txt
+++ b/proton-c/CMakeLists.txt
@@ -553,5 +553,10 @@
 
 mark_as_advanced (RUBY_EXE RSPEC_EXE)
 
+if (BUILD_JAVASCRIPT)
+  add_test (javascript-codec ${PYTHON_EXECUTABLE} ${env_py} node ${pn_test_root}/javascript/codec.js)
+  add_test (javascript-message ${PYTHON_EXECUTABLE} ${env_py} node ${pn_test_root}/javascript/message.js)
+endif (BUILD_JAVASCRIPT)
+
 # build examples to make sure they still work
 add_subdirectory(../examples ../examples)
diff --git a/tests/javascript/codec.js b/tests/javascript/codec.js
old mode 100644
new mode 100755
diff --git a/tests/javascript/message.js b/tests/javascript/message.js
old mode 100644
new mode 100755