fix javascript bugs