still not friends with javascript