Moved some constants to global.js.php