added local jquery
 prepare controller for REST calls