Adding widget javascripts