completed ajax loop for repl. bind execute button to retrieve json for repl.