js/google stuff, some cleanup in edit.php and edit.js