test3 sort of complete, works in chrome only