Javascript error reporter in PHP.