Move js generation into jaxrs module