Small bug fixes

Specifying typescript using ECMAScript 5 (needed for using get and set properties)

Fixing a small bug with firefox while saving screenshot (decteted as png but saved without extension)