improved jsextensions with partial fcts