moved css and js out, trying to undo some stuff from hacking the original provided demo code, which was not very well written