controller now processing js