split script and styles, added text