Multiple docuK Handling continued.
Reusable js is moved up