Added jsfiddle example, dependencies and fixed the example