[js] Alias userAgent to ua.