When using amdclean to create a footprint less javascript file, the object needs to be returned to let it properly be assigned to the created script variable.