Avoided usage of global JS scope