Bug fix: was using paths of ../stylesheets and ../javascripts instead of absolute paths, so URLs of depth 2 or greater broke.