External JavaScript dependencies in Typescript and Angular 2