fix object javascript global conflict