refactor
add gitignore
add karma + jasmine + phantomjs