Fix valign, Cleanup

* Cursor for valigned middle + bottom fixed; some placeholders were
still setting height to 100% of placeholder; if valign = middle, this
meant the div would overlap with placeholders below (fixed)
* Cleaned up some obsolete js functions