Create attrchange.js

taken from
http://meetselva.github.io/attrchange/