Prevent multiple initializations on the same element, change a couple of function statements to correct strict mode errors.
Merge pull request #14 from pvgr/master

Prevent multiple initializations on the same element…