Solve browser support bug: toElement didn't exist in FF
Merge branch 'master' into gh-pages