Made js support different logins based on site