add flowtype.js to body and dependencies