Refactor events handling js
Ajax updating in builds#show page