Passed varibles to javascript in view