Javascript callbacks now get told if the node moved to focus from back or front.
Add documentation