Collapse repositories list by default.
Move settings JavaScript to a separate file.