Rewrite SP nav classes with JS