Make ElementsParser a constructor function and create instances in fabric.parseElements
Added semicolon to satisfy jshint
Move ElementsParser instance methods to prototype
Added missing semicolon
Merge pull request #1136 from msievers/parser_race_condition

Fix race condition in fabric.parseElements by converting ElementsParser to a constructor function