Update javascript to new controls and improve API.
Fix footer bottom spacing