Fixed case where r.js didn't give the module a name

see #15