Updating error reporting for ajax
Adding pacage.json and fixing single