Made the slider into a directive, so we can reuse it elsewhere

Just for fun, I made the slider into a directive (see app.js), which means we can reuse it elsewhere. :)