[prototype->jQuery]  Refactored hideOnLoad

This refactoring helps to remove remaining prototype code.

see:https://www.openproject.org/work_packages/7066