[core] [js] avoid avoid functions overriding in common objects prototypes