scala.js code powering Tagsauce