update requirejs wordpress post