end.js return missing from build for some reason