Remove the element name from selectors
Merge the css() functions
Extract function, changeType()
Add trigger of change event
Merge pull request #1 from 7pairs/refactor-js

Refactor JavaScript [PR#1]