Changed how click-script works

Now applies an additional CSS class rather than changing properties. Should be a lot easier to maintain. Also changed animation of unit boxes.