add text block and Javascript