updated runtime.js with flattern utils