- set schematic.js mime type in script tag
- put rAF callback into anonymous function