added lightningjs loader that loads code into iframe for enabling
embedding as widget. fixed resulting bugs in firefox and chrome.