Tweak api.js ifle

 - Use an IIFE
 - Use a DOMContentLoaded listener to append css
Merge pull request #15 from koding-meteorhacks/tweak-api-js

Tweak api.js ifle