Slider changes.

1. Added js CommonComponent.js for commonly used components.
1. Added a generic functions in CommonComponent.js to create and load
sliders.