Pass Java strings instead of js strings