Add support for almond.js style AMD loading

Almond (https://github.com/jrburke/almond) loads only modules with an
explicit name.

Related: https://github.com/jrburke/almond/pull/49

From readme:

It usually means that there is a define()'d module, but it is missing a
name, something that looks like this:

define(function () {});

when it should look like:

define('someName', function () {});