some tiny fixes to js
more fixes and styling to embedding