some troubles with js