fixed js linking bug