Adding a shim for non-Closure Javascript.
Fixes #286.