magical javascript fixes height issue