Support non-JSON script attributes

This change was necessary to support loading `lessc` through RequireJS which adds the `requirecontext` and `requiremodule` attributes.