Allows addJsLink to be used for non-static Javascript.