File extensions in define: issues with requireJS

After many wrong proposals (sorry for that) I realized, you've added js-extensions to define in line 428+429, which I updated. Nevertheless I've got dependency loading issues with relative paths when I load isotope v2. Could you please make an example with requireJS and perhaps configured baseUrl?