fix bug 845164 - Prevent slug heirarchy JS change

https://bugzilla.mozilla.org/show_bug.cgi?id=845164