I edited my previous responses, but go ahead and roll your attack. As I said, rereading it there's nothing preventing you from throwing the javelin at another enemy within range, so regardless just roll and tell me who you're aiming for. Don't forget the 1d4 from Bless.