add js file for ajax calls to check logins