testing javascript for heights