Do one time action after logging in
Add the JS file inside the implementation of hook_user_login().
Function docs:


  The user just logged in.
  Parameters
  
  $edit: The array of form values submitted by the user.
  
  $account: The user object on which the operation was just performed.