Cleans unneeded stuff of mongo/javascript entities before sending them out over AJAX