ADD globals.js
FIX core.js