-jQuery( function($) {
- var before = function() {
- var nonce = $('#newmeta [@name=_ajax_nonce]').val();
- var postId = $('#post_ID').val();
+jQuery(document).ready( function($) {
+ var before, addBefore, addAfter, delBefore;
+
+ before = function() {
+ var nonce = $('#newmeta [name="_ajax_nonce"]').val(), postId = $('#post_ID').val();