path data from controller to js