added sep calc functionality integrated with tangle.js