refactor: rename class
refactor: move javascript to seperate file
a few changes