js loader update to allow inline scripts