some practices with js