bug with wrapping js files