Javascript implementation of QF framework