Completed moving everything to angular instead of plain JS.