putting ajax setup for setting js csrf tokens to parse correctly in base.html