Make an amd-module out of a javascript file