JavaScript - namespace
if (typeof APP !== 'undefined') { throw new Error('namespace "APP" is already exists.') } window.APP = {}