Fixed by size: Double colon :: changed to -> because addWidgetJs was not static.