using pattern {% url %}, replacing spaces for tabs in .js