fix in index template JS balance