try out adding the shake event listener after we set up results from ajax.