Fixing dynamic javascript insertion.