Added some documentation about global.js

Signed-off-by: Pascal Piché <pascal@nitriques.com>