add ruby-version
pull out example controller js
pull out directive