Replaced document.createElement with new Element

**Main fix**
- `makeCanvas` function returns the element, which you try to `inject` later on into the DOM. Because `inject` is MooTools method it fails in browsers which use excanvas plugin. Creating `canvas` element by MooTools solves the problem.

**Minor changes**
- removed whitespaces
- added missing semicolons
- added missing radixes in `parseInt` methods