bug fix for jQuery relative codes