Commenting javascript, added SQL errors