As @allObjects says, if you're doing point-to-point then a directional antenna (if you can find a 2.4ghz one) might mean that you can get the range that you need.
Otherwise I think you're going to have to use a different type of radio I'm afraid.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
As @allObjects says, if you're doing point-to-point then a directional antenna (if you can find a 2.4ghz one) might mean that you can get the range that you need.
Otherwise I think you're going to have to use a different type of radio I'm afraid.