Add calculator to javascript