basic JS flow odne