Controller adapted to jquery