Using third party JS in amd modules