Just wait for them to release the full web browser and you'll be able to run as much JavaScript as you want. This is a common feature of most if not all modern web browsers. The real thing here is the DNS trick, not the JavaScript execution.