change the random-task implementation to use ajax rather than page reload