Move rails constants to separate JS file