Rewrite and uglify, rendering kinda works now.