Vid 1338

JS unit tests for titleThumbnail view. 
added a before each