fix javascript linking