added new  variable for attaching JS after other JS injected into the head from modules