hooking up calculator with javascript'