Change scripts block to allow custom attributes