Added slider javascript.