Similar to https://gist.github.com/jonnybojangles/7492609 but this snippet extends the module widget. Good for use across multiple files.