fixed JSON script delivery