Fix javascript for add a related work. Fixes ndlib/planning#299
Merge pull request #213 from ndlib/fix_related_work_js

Fix javascript for add a related work. Fixes ndlib/planning#299