fix javascript command