passing value from controller to javascript