General decision helping calculator written in phonegap (js ported from Java)