javascripts use pathprefix too