Implement slider without jQuery