rename molecule combinations method
fixed some mistaken global vars in script.js