Fix template for javascript