add gon to pass variables to javascript