Added helper ajax functions in common.js to automatically add the CSRF tokens to the ajax request