intermediate.js update - working