The chemical structure editor used on OpenOChem is based on Kekule.js. You can learn more about Kekule.js project here.