fix for js dirs