The generic .js script i use for doing ajax queries