Fixed hoisting bug and TS compilation issue

Option arguments to autosizeInput() were ignored due to a hoisting issue. This commit should fix issue #11.