use closest() instead of parents()
Added some data check
Update version
Fix empty data
Compress js
Merge branch 'pr/2'