GitHub buttons and JS refactor