Used jQuery attributes object when creating elem