FIX javascript and ADD template block