passes rails variable to JS