Scaling calculator using frontend js frameworks (Angular)