Fix javascript problems (or not)