A lighter alternative to $.widget