fix lint, duplicate scripts, add json linting, misc