cupJs

function and methods. main code.