minor js and style fixes