fixing slight error in JS link