fixed the inline js