Use javascript variable in Phoenix EEx

Thanks NobbZ. That make sense. I guess I have to do it manually then. If anyone have any suggestion to do this, that would be great!