hooked up calculator via ajax