Fix building plugin Convert javascript files to typescript. Change-Id: Id16ae2c508603a6a4a2a34e8c7c75c4c602dd59c