Added input for revision number, added branches button

Cleaned JS a bit.