Modification on amsproxy.js & unit test after code reviews.

This is pull request for 2nd review.

Major changes include:
- Returning the entire sequence node content (originally returned only the value in the targetActivity field)

Minor changes include:
- variable declaration style
- change dot double quotes
- comment improvements