fix javascript config