js3 mode global functions/objects

Signed-off-by: Karsten Gebbert <karsten@null2.net>