reducing javascript lib to minimal structure mostly needed not heavyweight contenders