a JavaScript gradient object