pull out only necessary parts of fast.js