cleaned up JS a bit, settings for ajax set