Updated version
Updated demo
Fixed bug where change event wouldn't fire on key press