added js client prototype and changed from resteasy-servlet to resteasy-filter