add getJavascriptSrc method to retrieve config from a view helper