JS FileUploader written in TypeScript and HAML