move around some javascript