created a globals partial and inserted the config js vars using js and ruby