ajax assignment - not working