rewrite w fast.js