Update complexfn.js

added comments