added basic embedding support
some tiny fixes to js
more fixes and styling to embedding