> Rails.root.to_s + "/vendor/assets/javascripts"

These assets are being exposed via the Asset Pipeline and doesn't live in the Rails root path. You make a fair point though. I'll see if I can find a better option.