Moved type definitions to .d.js files to avoid clutter and network overhead. Added typing to input.js, but still no event typing Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com>