make things pretty with some javascript