removed nested script blocks