added usage for JS to whitespace_only and simple compilation modes
added checks for dom element in the render function
Merge pull request #18 from emil0r/master

Easier use by plain JavaScript + Closure users.