support inline scripts for Loader