Enhance custom js parameters to support external js.