Moved javascript_include_tag to bottom of the layout; app now works in safari