Change dom selection and parseInt
Merge pull request #1 from muan/master

Fixing the attribs error maybe