Remove sprintf, pad out clone and fix linting in main.js