Updated Ripple to new JS Design pattern

Updated Ripple component to use the new proposed JS design pattern
detailed at https://github.com/jasonmayes/wsk-component-design-pattern