Create torch.js