Don't use ['html_headers'] to add JS (per #339)

Signed-off-by: Michael Eshom <oldiesmann@oldiesmann.us>
Merge pull request #465 from Oldiesmann/release-2.1

Don't use $context['html_headers'] to add JS (per #339)