REST Examples with JavaScript and JEE JAX-RS