Make links relative and remove unused js