Sharing same application settings between ruby and javascript