Pass variables from rails to javascript