Fix javascript run issue