fix javascript import issue