cleanup, upgrade to TS 1.0, properly use .d.ts for jquery, three, etc