Update js/nf.js

REmoved old method