/*jslint indent: 2 */
/*global $: false, document: false, togglbutton: false*/
'use strict';

togglbutton.render('.subheader-status .subheader-content', {}, function (elem) {
  var link, description,
    titleElem = $('.subheader-content h2'),
    projectElem = $('#header h1').clone().children().remove().end().text(); //Exp: http://stackoverflow.com/a/8851526

  description = titleElem.innerText;

  link = togglbutton.createTimerLink({
    className: 'sifterapp',
    description: description,
    projectName: projectElem && projectElem.textContent
  });

  $('.subheader-content h2').appendChild(link);
});

@@ -188,24 +188,42 @@
 description,
+ project, company,
 %0A    titleEl
@@ -292,129 +292,238 @@
 h1')
-.clone().children().remove().end().text(); //Exp: http://stackoverflow.com/a/8851526%0A%0A  description = titleElem.innerText
+,%0A    companyElem = $('#header h1 .company');%0A%0A  description = titleElem.innerText;%0A  project = projectElem.textContent;%0A  company = companyElem.textContent;%0A  %0A  project = project.substring(0, project.length - company.length - 1)
 ;%0A%0A 

remove company name from project name