javascript imporvement

1. improve file selector to fire change event even select same file

2. improve "obj" shorthand usage on javascript