Added citations, cleared several JSLint errors