tests for javascript inclusion; added empty arrays as default
allow inline javascript before/after content; closes #46