Widget

A snippet of code, usually javascript, that does something useful.