Make sure window.JST is declared before use