creation of global js