Added js for calc