shorter javascript