AngularJS: directive - initSpreadsheet