Fix Scripts and added a onDocSubscribed event handler