Extract js shims into standalone file.