javascript for the conseptual editor