tinkering with js and the ajax