JavaScript : Internal information leak