routes loader for webpack