Refactor js code
Refactor: introduce React class
Remove unused variable