Modify javascript code to better handle chapters and assignment modification