try to fix javascript problems