Javascript (Vanilla) Helper functions: miniTPL & loadJSON