Updated Javascript CMake code