How can i use javascript based web UI to wirelessly communicate with arduino?
The question is really "How can I send serial data wirelessly to the Arduino". There are many ways to do that.
What you need to define is:
How much data? How many bytes in what period of time?
How far?
With what reliability?
Absolutely having to have every byte arrive, when sending 10 Gigabytes of data per second, a distance of 27 kilometers is really going to challenge your wallet. Getting 7 out of 10 bytes through per hour a distance of 25 centimeters will be far more economical.