bug fix for including the same js file twice