Update fn.js

depend on when explicitly