Calculating a,b,(c) on server side
Removed now unnecessary UI and js functions