Added typescript references to main.js.