Streamlined callbacks from Javascript with returns