Switching assertions to globals for removal with uglify2