fixes #10
now slug via js