amd support for js file