Using Innerhtml In Javascript Object Properties Count