still ugly, but at least the JS is now working