Work Package Javascript Bugfix/Cleanup

After Updating a work package, all ajax actions were not working.
Also the work package js was always included in every page.