Created js directive for me to play with.