made relative url { % url base % } and fixed some .js for running on subpath