Fix javascript stuff.