Getting Widget Identifier in JavaScript

Is there a way to read the identifier, I'd like to use it as a parameter in the widget's source?