refactored color slider example and added an angular 1 directive