fixed remaining bugs for futurebook and sweet million compability issues using javascript