Work Package Javascript Bugfix/Cleanup

Implements [ticket 2125](https://www.openproject.org/issues/2125)

After Updating a work package, all ajax actions were not working.
Also the work package js was always included in every page.