fix for scripts without src attribute