make paths relative to webpage