NoraMark port to JavaScript