For client side logic various JavaScript frameworks can be used, though XPages comes with the Dojo Toolkit and Dojo controls can be easily referenced in XPages applications.
As any web application XPages applications can use REST services.