settings can be passed from view by request attribute 'javascript_settings'