Fixes #5727 adds documentation to head view for JavaScript loading order