Added size attribute and use method.
Using jshint.