fixed some javascript layout glitches, cleanup console.log