refactor js
add some thougths
dull commit