salary calculation now done on the server with help from RxJS