added example ajax in js/test.js; tweaked and tested viewProfile; ttested submitNewActivity