Some tricks with js