[docs] Improves globals.js and minor fix in system.js