Bugfixes, javascript encodes, more styles