include script file in footer while module installation

I have  script file in which  i am using ajax call on my controller. I want to add this file in global footer when my module will install in new instance right i am statically include this file in my views template but in this case it will run when any one will open module. My case is different i want to run it when some login to crm and start working on it, then automatically  file will add in footer