added js version of collection
added js version of directive
added js version of factory
tidying up
tidied up ext
let's test