add it to main click function and improve functiopn addAtom in chemistry.js