Add attributes support to generated script tags