Making a JavaScript widget with Vincent