added RunJavascript task;
added ApplyMigration task;
refactored;
refactored