Refactor note sections js

Only wrap things in $(document).ready() that make sense to.
Update citeproc-js to 1.0.409

Fixes compatibility issues with Firefox 17, which disabled E4X.
Update js files working with citeproc-js

Also update the csl style we're using