Code cleanup for extensions page buttons
Remove redundant Js functions
import issues fixed js