FIX refactored runtime.js