Fixing js logins for minimum