formatting for tags js