a little javascript slide program