makeEnum -> createEnum
use a Map instead of object + id for dock items

Map is now supported by all new major browsers, and this removes the
need for the user to specify a unique id for a dock item.