Reverted code changes from previous commit to remove JS errors.

And fixed some issues with the JDG tutorial.
JDF-262 Updated the tutorial to use JBoss EAP 6.1 and JBDS 6.0.1