constructor.name more resilient + jshinting
Merge pull request #1 from ordrin/dev_polina

constructor.name more resilient + jshinting